package org.yhx.learning.verticle.eventbus;/*
 * Copyright (C), 2024, bigmoon
 * FileName:
 * Author:   bigmoon
 * Date:     2024/9/5 11:52
 * Description: //模块目的、功能描述
 * History: //修改记录
 * &lt;author&gt;      &lt;time&gt;      &lt;version&gt;    &lt;desc&gt;
 * 修改人姓名             修改时间            版本号                  描述
 */

import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;

public class Main {

    public static void main(String[] args) {

        Vertx vertx = Vertx.vertx();
        //创建四个温度探测实例
        vertx.deployVerticle("org.yhx.learning.verticle.eventbus.HeatSenorVerticle",new DeploymentOptions().setInstances(4));
        vertx.deployVerticle(new ListenerLog());
        vertx.deployVerticle(new HttpServer());
        vertx.deployVerticle(new ListenerLog());
        vertx.deployVerticle(new SensorDataVerticle());
    }
}
